package cc.lj.internal.coupons.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * 封顶额活动批次表DTO
 * @author liangxifeng
 * @date 2021-12-13
 */
@Data
@NoArgsConstructor
@ApiModel("封顶额活动批次表-DTO")
public class CapBatchDTO {
    @ApiModelProperty(value = "主键")
    private Integer id;
    /**
     * 关联券批次ticket_batch主键
     */
    @ApiModelProperty(value = "关联券批次ticket_batch主键")
    private Integer	batchId;

    /**
     * 关联商户封顶额mart_cap表主键
     */
    @ApiModelProperty(value = "关联商户封顶额mart_cap表主键")
    private Integer	capId;

    /**
     * 占有卖场封顶额的比例，不可为空，默认0
     */
    @ApiModelProperty(value = "占有卖场封顶额的比例")
    private BigDecimal martCapRatio;

    /**
     * 商户新分摊比例
     */
    @ApiModelProperty(value = "商户新分摊比例")
    private BigDecimal	merchantShare;

    /**
     * 卖场新分摊比例
     */
    @ApiModelProperty(value = "卖场新分摊比例")
    private BigDecimal	martShare;

    /**
     * 商户分摊金额
     */
    @ApiModelProperty(value = "商户分摊金额")
    private BigDecimal	merchantPrice;

    /**
     * 卖场分摊金额
     */
    @ApiModelProperty(value = "卖场分摊金额")
    private BigDecimal	martPrice;

    @ApiModelProperty(value = "关联电子券券批次DTO")
    private TicketBatchDTO ticketBatchDTO;
}
